package com.bjsdzk.collector.rpc;

import com.bjsdzk.backend.rpc.collector.BaseLocalDeviceCollect;
import com.bjsdzk.backend.rpc.entity.collector.DeviceCmdInfo;
import com.bjsdzk.backend.rpc.entity.collector.DeviceInfo;
import com.bjsdzk.backend.rpc.entity.response.Result;
import com.bjsdzk.backend.rpc.entity.response.ResultHandler;
import com.bjsdzk.collector.constant.Constant;
import lombok.extern.slf4j.Slf4j;

/**
 * @author sl
 */
@LocalCommunicationServiceType(dtuType = {Constant.DTUTYPE_15})
@Slf4j
public class ZhuowenBrokerService implements BaseLocalDeviceCollect {
    @Override
    public Result deviceAdd(DeviceInfo deviceInfo) {

        return ResultHandler.ok(true);
    }

    @Override
    public Result deviceDelete(DeviceInfo deviceInfo) {

        return ResultHandler.ok(true);
    }

    @Override
    public Result deviceUpdate(DeviceInfo deviceInfo) {

        return ResultHandler.ok(true);
    }

    @Override
    public Result cmd(DeviceCmdInfo baseDeviceCmd) {
        log.info("14 15----------------laile " + baseDeviceCmd.toString());
        return ResultHandler.ok(true);
    }
}
